﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace GanFeng.Forest.WebApi.Objects
{
    /// <summary>
    /// MES 配方
    /// </summary>
    public class MesRecipeArgs
    {
        /// <summary>
        /// 配方名称
        /// </summary>
        [JsonPropertyName("name")]
        public string Name { get; set; } = string.Empty;
        /// <summary>
        /// 设备编码
        /// </summary>
        [JsonPropertyName("device_code")]
        public string DeviceCode { get; set; } = string.Empty;
        /// <summary>
        /// 配比：0~100
        /// </summary>
        [JsonPropertyName("rate")]
        public double Rate { get; set; }
        /// <summary>
        /// MES 配方明细集
        /// </summary>
        [JsonPropertyName("details")]
        public List<MesRecipeArgsDetail>? Details { get; set; }
    }
}
